package com.sky.mapper.admin;

import com.sky.annotation.AutoFill;
import com.sky.dto.EmployeePageQueryDTO;
import com.sky.enumeration.OperationType;
import com.sky.pojo.Employee;
import com.sky.result.PageResult;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
@Mapper
public interface EmployMapper {

    @AutoFill(value = OperationType.INSERT)
    void add(Employee employee);

    List<Employee> findByPage(String name);

    @AutoFill(value = OperationType.UPDATE)
    void authority(Integer status, Integer id);

    Employee findById(Integer id);

    @AutoFill(value = OperationType.UPDATE)
    void update(Employee employee);
}
